package com.carter.springframework.context;

import com.carter.springframework.beans.factory.support.BeanDefinitionRegistry;
import com.carter.springframework.context.support.BeanNameGenerator;
import com.carter.springframework.core.type.AnnotationMetadata;

public interface ImportBeanDefinitionRegistrar {
    default void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry,
                                         BeanNameGenerator importBeanNameGenerator) {

        registerBeanDefinitions(importingClassMetadata, registry);
    }

    default void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) {
    }
}
